package com.jdls.pojo;

public class Result {
    //描述统一格式中的数据
    private Object data;
    //成功为true 失败为false
    private boolean flag;
    //描述统一格式中的消息，可选属性
    private String msg;

    public Result() {
    }

    public Result(Object data, boolean flag) {
        this.data = data;
        this.flag = flag;
    }

    public Result(Object data, boolean flag, String msg) {
        this.data = data;
        this.flag = flag;
        this.msg = msg;
    }

    public Object getData() {

        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}